﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using System.Collections.ObjectModel;

namespace RZD_maps.Modules.Graphics3.Models
{
    public class Datas
    {
        public static ObservableCollection<Data> RandomSeries2(double amplitude, double phaseShift, int count = 5000)
        {
            ObservableCollection<Data> doublePoints = new ObservableCollection<Data>();
            var rand = new Random((int)DateTime.Now.Ticks);
            for (int i = 0; i < count; i++)
            {
                var doublePoint = new Data();

                double time = 50 * i / (double)count;
                double wn = 2 * Math.PI / (count / 10);

                doublePoint.Value = time;
                doublePoint.Value1 = (5 * (rand.NextDouble() - 0.5) + 1.0);
                doublePoints.Add(doublePoint);
            }

            return doublePoints;
        }
    }

    public class Data
    {
        public Data()
        {

        }
        public Data(DateTime date, double value, double value1, double value2)
        {
            Date = date;
            Value = value;
            Value1 = value1;
            Value2 = value2;
        }

        public DateTime Date
        {
            get;
            set;
        }

        public double Value
        {
            get;
            set;
        }
        public double Value1
        {
            get;
            set;
        }
        public double Value2
        {
            get;
            set;
        }
    }   
}
